﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="WorkTimeEvection.aspx.cs" Inherits="WorkTimeN_WorkTimeEvection" %>

<%@ Register Assembly="ZLTextBox" Namespace="BaseText" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <infolight:webdatasource id="Master" runat="server" autoapply="True" webdatasetid="WMaster"
        allowadd="True" allowdelete="True" allowprint="True" allowupdate="True" alwaysclose="False"
        autoapplyforinsert="False" autorecordlock="False" autorecordlockmode="NoneReload"
        cachedataset="True" commandname="" commandtext="" datamember="WorkTime_Evection"
        eof="True" keyvalues="" lastindex="-1" marker="'" masterdatasource="" packetrecords="100"
        quoteprefix="[" quotesuffix="]" remotename="" selectcommand="" 
        tablename="" onapplyerror="Master_ApplyError">
    </infolight:webdatasource>
    <infolight:webdatasource id="WEmp" runat="server" selectalias="Usasdb" selectcommand="SELECT     &#13;&#10;Employees.EmployeeID, &#13;&#10;Employees.EmpName, &#13;&#10;CompanyJob.JobName, &#13;&#10;Department.DepartmentName&#13;&#10;FROM         &#13;&#10;Employees INNER JOIN&#13;&#10;                      Department ON Employees.DepartmentId = Department.DepartmentId                   INNER JOIN&#13;&#10;                      CompanyJob ON Employees.JobId = CompanyJob.JobId&#13;&#10;WHERE     (Employees.EmpStatus = 1)"
        cachedataset="True">
    </infolight:webdatasource>
    <infolight:webdatasource id="WVehicle" runat="server" allowadd="True" allowdelete="True"
        allowprint="True" allowupdate="True" alwaysclose="False" autoapply="False" autoapplyforinsert="False"
        autorecordlock="False" autorecordlockmode="NoneReload" cachedataset="True" commandname=""
        commandtext="" eof="True" keyvalues="" lastindex="-1" marker="'" masterdatasource=""
        packetrecords="100" quoteprefix="[" quotesuffix="]" selectalias="Usasdb" selectcommand="select WorkTime_SV_Vehicle.VehicleId,WorkTime_SV_Vehicle.VehicleName from WorkTime_SV_Vehicle"
        tablename="">
    </infolight:webdatasource>
    <infolight:webdefault id="WebDefault1" runat="server" datamember="WorkTime_Evection"
        datasourceid="Master">
        <fields>
                <InfoLight:DefaultFieldItem DefaultValue="0" FieldName="EvectionId" />
                <InfoLight:DefaultFieldItem DefaultValue="GetEmployeeId()" FieldName="EmployeeId" />
                <InfoLight:DefaultFieldItem DefaultValue="GetDateFrom()" FieldName="DateFrom" />
                <InfoLight:DefaultFieldItem DefaultValue="GetDateTo()" FieldName="DateTo" />
            </fields>
    </infolight:webdefault>
    <infolight:webvalidate id="WebValidate1" runat="server" altrowcss="" datamember="WorkTime_Evection"
        datasourceid="Master" forecolor="Red" rowcss="" validatestyle="ShowDialog">
        <fields>
<InfoLight:ValidateFieldItem FieldName="EvectionId" CheckNull="True"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="EmployeeId" CheckNull="True"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="DateFrom" Validate="ValidateDateFrom()" WarningMsg="终止日期必须大于起始日期\r\n或是\r\n请假时间不在工作时间之内"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="DateTo" Validate="ValidateDateTo()" WarningMsg="终止日期必须大于起始日期\r\n或是\r\n请假时间不在工作时间之内"></InfoLight:ValidateFieldItem>
            <InfoLight:ValidateFieldItem CheckNull="True" FieldName="CusCompany" 
                ValidateLabelLink="CaptionICusCompany"></InfoLight:ValidateFieldItem>
</fields>
    </infolight:webvalidate>
    <FLTools:FLWebNavigator ID="FLWebNavigator1" runat="server" BindingObject="WebFormView1"
        ShowDataStyle="FormViewStyle" StatusStrip="WebStatusStrip1" CtlHeight="25" Width="100%"
        AutoSubmit="True" CssClass="NavigatorBar" 
        oncommand="FLWebNavigator1_Command">
        <NavControls>
            <infolight:controlitem controlname="Add" controltext="add" controltype="Image" controlvisible="True"
                disenableimageurl="../Image/UIPics/Add3_C.gif" imageurl="../Image/UIPics/Add_C.gif"
                mouseoverimageurl="../Image/UIPics/Add2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Update" controltext="update" controltype="Image"
                controlvisible="True" disenableimageurl="../Image/UIPics/Edit3_C.gif" imageurl="../Image/UIPics/Edit_C.gif"
                mouseoverimageurl="../Image/UIPics/Edit2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Delete" controltext="delete" controltype="Image"
                controlvisible="True" disenableimageurl="../Image/UIPics/Delete3_C.gif" imageurl="../Image/UIPics/Delete_C.gif"
                mouseoverimageurl="../Image/UIPics/Delete2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Apply" controltype="Image" controlvisible="True"
                disenableimageurl="../Image/UIPics/Apply3_C.gif" imageurl="../Image/UIPics/Apply_C.gif"
                mouseoverimageurl="../Image/UIPics/Apply2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Abort" controltype="Image" controlvisible="True"
                disenableimageurl="../Image/UIPics/Abort3_C.gif" imageurl="../Image/UIPics/Abort_C.gif"
                mouseoverimageurl="../Image/UIPics/Abort2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Query" controltext="query" controltype="Image"
                controlvisible="True" disenableimageurl="../image/uipics/Query3_C.gif" imageurl="../image/uipics/Query_C.gif"
                mouseoverimageurl="../image/uipics/Query2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Submit" controltext="submit" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Submit_C.gif"
                mouseoverimageurl="../image/uipics/Submit2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Approve" controltext="approve" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../Image/UIPics/Approve_C.gif"
                mouseoverimageurl="../Image/UIPics/Approve2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Return" controltext="return" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Return_C.gif"
                mouseoverimageurl="../image/uipics/Return2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Reject" controltext="reject" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Reject_C.gif"
                mouseoverimageurl="../image/uipics/Reject2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Notify" controltext="notify" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Notify_C.gif"
                mouseoverimageurl="../image/uipics/Notify2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="FlowDelete" controltext="flowdelete" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/FlowDelete_C.gif"
                mouseoverimageurl="../image/uipics/FlowDelete2_C.gif" size="70">
            </infolight:controlitem>
            <infolight:controlitem controlname="Plus" controltext="plus" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Plus_C.gif"
                mouseoverimageurl="../image/uipics/Plus2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Pause" controltext="pause" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Pause_C.gif"
                mouseoverimageurl="../image/uipics/Pause2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Comment" controltext="comment" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Comment_C.gif"
                mouseoverimageurl="../image/uipics/Comment2_C.gif" size="48">
            </infolight:controlitem>
        </NavControls>
        <FLStates>
            <FLTools:FLWebNavigatorStateItem StateText="Approve" VisibleControls="Approve;Return;Notify;Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Continue" VisibleControls="Submit;Notify;Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Inquery" VisibleControls="Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Notify" VisibleControls="Notify;FlowDelete;Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Return" VisibleControls="Submit;Reject;Notify" />
            <FLTools:FLWebNavigatorStateItem StateText="Submit" VisibleControls="Submit;Notify;Pause" />
            <FLTools:FLWebNavigatorStateItem StateText="None" VisibleControls="" />
            <FLTools:FLWebNavigatorStateItem StateText="Plus" VisibleControls="Approve;Notify;Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Lock" VisibleControls="Notify" />
            <FLTools:FLWebNavigatorStateItem StateText="FSubmit" VisibleControls="Submit;Notify" />
            <FLTools:FLWebNavigatorStateItem StateText="RSubmit" VisibleControls="Submit;Return;Notify" />
        </FLStates>
        <NavStates>
            <infolight:webnavigatorstateitem enablecontrols="First;Previous;Next;Last;Add;Update;Delete;Query;Print;Export"
                statetext="Initial">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="First;Previous;Next;Last;Add;Update;Delete;Query;Print;Export"
                statetext="Browsed">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="OK;Cancel;Apply;Abort" statetext="Inserting">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="OK;Cancel;Apply;Abort" statetext="Editing">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="" statetext="Applying">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="First;Previous;Next;Last;Add;Update;Delete;Apply;Abort;Export"
                statetext="Changing">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="" statetext="Querying">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="" statetext="Printing">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="" statetext="Normal">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="Add" statetext="Insert">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="Update" statetext="Modify">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="Query" statetext="Inquery">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="Query;Update" statetext="Prepare">
            </infolight:webnavigatorstateitem>
        </NavStates>
    </FLTools:FLWebNavigator>
    <infolight:webformview id="WebFormView1" runat="server" datasourceid="Master" cellpadding="5"
        layoutcolnum="2" forecolor="#333333" height="87px" width="100%" backcolor="Silver"
        bordercolor="White" borderstyle="Groove" borderwidth="2px" oniteminserting="WebFormView1_ItemInserting"
        ondatabound="WebFormView1_DataBound" onitemupdating="WebFormView1_ItemUpdating">
        <footerstyle backcolor="#507CD1" forecolor="White" font-bold="True" />
        <editrowstyle backcolor="LightCyan" forecolor="Blue" />
        <rowstyle backcolor="#EFF3FB" forecolor="Navy" />
        <pagerstyle forecolor="White" horizontalalign="Center" backcolor="PowderBlue" />
        <headerstyle backcolor="#507CD1" font-bold="True" forecolor="White" />
        <insertrowstyle backcolor="LightCyan" forecolor="Blue" />
        <edititemtemplate><table class="container_table" style="width: 715px">
                <tr>
                    <td style="height: 26px; width: 56px;">
                        <asp:Label ID="CaptionIEvectionId" runat="server" Text="编号:" ForeColor="Red"></asp:Label></td>
                    <td style="width: 124px; height: 26px;">
                        <asp:TextBox ID="TextBox1" runat="server" ReadOnly="True" Text='<%# Bind("EvectionId") %>'
                            Width="140px"></asp:TextBox></td>
                    <td style="width: 58px; height: 26px;">
                        <asp:Label ID="CaptionIEmployeeId" runat="server" Text="员工编号:" ForeColor="Red"></asp:Label></td>
                    <td style="width: 388px; height: 26px;">
                        <InfoLight:WebRefVal ID="WebRefVal1" runat="server" AllowAddData="False" BackColor="#EFF3FB"
                            BindingText="" BindingValue='<%# Bind("EmployeeId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                            DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" 
                            DataValueField="EmployeeID" MultiLanguage="False"
                            PostBackButonClick="False" ReadOnly="False" ResxDataSet="" ResxFilePath="" UpdatePanelID=""
                            UseButtonImage="True" Width="140px" OpenRefHeight="550">
                        </InfoLight:WebRefVal>
                    </td>
                </tr>
                <tr>
                    <td style="height: 26px; width: 56px;">
                        <asp:Label ID="CaptionICusCompany" runat="server" Text="客户公司:"></asp:Label></td>
                    <td style="width: 124px; height: 26px;">
                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("CusCompany") %>' Width="140px" MaxLength="45"></asp:TextBox></td>
                    <td style="width: 58px; height: 26px;">
                        <asp:Label ID="CaptionICustomerName" runat="server" Text="客户姓名:"></asp:Label></td>
                    <td style="width: 388px; height: 26px;">
                        <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("CustomerName") %>' Width="140px" MaxLength="45"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 56px">
                        <asp:Label ID="CaptionIVehicleId" runat="server" Text="交通工具:"></asp:Label></td>
                    <td style="width: 124px"><InfoLight:WebDropDownList ID="WebDropDownList1" 
                            runat="server" AutoInsertEmptyData="False"
                            DriverObject="" Filter="" FilterObject="" SelectedValue='<%# Bind("VehicleId") %>'
                            Width="140px" DataSourceID="WVehicle" DataTextField="VehicleName" 
                            DataValueField="VehicleId">
                    </InfoLight:WebDropDownList></td>
                    <td style="width: 58px">
                        <asp:Label ID="CaptionIEveHours" runat="server" Text="出差时数:"></asp:Label></td>
                    <td style="width: 388px">
                        <cc1:ZLTextBox ID="ZLTextBox3" runat="server" FloatLength="2" InputType="number"
                            IsDisplayTime="True" Language="Chinese" MaxLength="4" onblurCssName="" onfocusCssName=""
                            ShowMessage="" Text='<%# Bind("EveHours") %>' textValue="" Width="140px" ReadOnly="True"></cc1:ZLTextBox></td>
                </tr>
                <tr>
                    <td style="width: 56px">
                        <asp:Label ID="CaptionIDateFrom" runat="server" Text="起始日期:"></asp:Label></td>
                    <td style="width: 124px">
                    
<asp:TextBox ID="ZLTextBox1" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false,readOnly:true
})" 
                            Text='<%# Bind("DateFrom") %>' CssClass="Wdate" Width="140px"/></asp:TextBox>

</td>
                    <td style="width: 58px">
                        <asp:Label ID="CaptionIDateTo" runat="server" Text="终止日期:"></asp:Label>
                    </td>
                    <td style="width: 388px">
                                      
<asp:TextBox ID="ZLTextBox2" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false,readOnly:true
})" 
                            Text='<%# Bind("DateTo") %>' CssClass="Wdate" Width="140px"/></asp:TextBox>
</td>
                </tr>
                <tr>
                    <td style="height: 26px; width: 57px;">
                        <asp:Label ID="Label10" runat="server" Text="借款:"></asp:Label></td>
                    <td style="width: 121px; height: 26px;">
                        <asp:TextBox ID="CheckBox4" runat="server"  Text='<%# Bind("BorrowCash") %>' Width="140px" /></td>
                    <td style="width: 56px; height: 26px;">
                        <asp:Label ID="Label11" runat="server" Text="是否订票:"></asp:Label></td>
                    <td style="width: 388px; height: 26px;">
                        <asp:CheckBox ID="CheckBox5" runat="server" Checked='<%# Bind("BookTicket") %>' /></td>
                </tr>
                <tr>
                    <td style="height: 26px; width: 57px;">
                        <asp:Label ID="Label12" runat="server" Text="取消:"></asp:Label></td>
                    <td style="width: 121px; height: 26px;">
                        <asp:CheckBox ID="ckbCancel" runat="server" Checked='<%# Bind("Cancel") %>' /></td>
                </tr>
                <tr>
                    <td style="width: 56px">
                        <asp:Label ID="CaptionICausation" runat="server" Text="原因:"></asp:Label></td>
                    <td colspan="3">
                        <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("Causation") %>' Width="440px" MaxLength="45"></asp:TextBox></td>
                </tr>
                 <tr>
                    <td style="width: 57px">
                        <asp:Label ID="Label13" runat="server" Text="备注:"></asp:Label></td>
                    <td colspan="3">
                        <asp:TextBox ID="txtMemo" runat="server" Text='<%# Bind("Memo") %>'
                            Width="440px" TextMode="MultiLine"></asp:TextBox></td>
                </tr>
            </table>
            </edititemtemplate>
        <insertitemtemplate><table class="container_table" style="width: 715px">
                <tr>
                    <td style="width: 57px">
                        <asp:Label ID="CaptionIEvectionId" runat="server" Text="编号:" ForeColor="Red"></asp:Label></td>
                    <td style="width: 105px">
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("EvectionId") %>' Width="140px" ReadOnly="True"></asp:TextBox></td>
                    <td style="width: 57px">
                        <asp:Label ID="CaptionIEmployeeId" runat="server" Text="员工编号:" ForeColor="Red"></asp:Label></td>
                    <td style="width: 388px">
                        <InfoLight:WebRefVal ID="WebRefVal1" runat="server" AllowAddData="False" BackColor="#EFF3FB"
                            BindingText="" BindingValue='<%# Bind("EmployeeId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                            DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" 
                            DataValueField="EmployeeID" MultiLanguage="False"
                            PostBackButonClick="False" ReadOnly="False" ResxDataSet="" ResxFilePath="" UpdatePanelID=""
                            UseButtonImage="True" Width="140px" OpenRefHeight="550">
                            <Columns>
                                <InfoLight:WebRefColumn ColumnName="EmployeeID" HeadText="员工编号" Width="100" />
                                <InfoLight:WebRefColumn ColumnName="EmpName" HeadText="员工姓名" Width="100" />
                                <InfoLight:WebRefColumn ColumnName="JobName" HeadText="职位" Width="100" />
                                <InfoLight:WebRefColumn ColumnName="DepartmentName" HeadText="部门名称" Width="100" />
                            </Columns>
                        </InfoLight:WebRefVal>
                    </td>
                </tr>
                <tr>
                    <td style="height: 26px; width: 57px;">
                        <asp:Label ID="CaptionICusCompany" runat="server" Text="客户公司:"></asp:Label></td>
                    <td style="width: 105px; height: 26px;">
                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("CusCompany") %>' Width="140px" MaxLength="45"></asp:TextBox></td>
                    <td style="width: 57px; height: 26px;">
                        <asp:Label ID="CaptionICustomerName" runat="server" Text="客户姓名:"></asp:Label></td>
                    <td style="width: 388px; height: 26px;">
                        <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("CustomerName") %>' Width="140px" MaxLength="45"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 57px">
                        <asp:Label ID="CaptionIVehicleId" runat="server" Text="交通工具:"></asp:Label></td>
                    <td style="width: 105px"><InfoLight:WebDropDownList ID="WebDropDownList1" 
                            runat="server" AutoInsertEmptyData="False"
                            DriverObject="" Filter="" FilterObject="" SelectedValue='<%# Bind("VehicleId") %>'
                            Width="140px" DataSourceID="WVehicle" DataTextField="VehicleName" 
                            DataValueField="VehicleId">
                    </InfoLight:WebDropDownList></td>
                    <td style="width: 57px">
                        <asp:Label ID="CaptionIEveHours" runat="server" Text="出差时数:"></asp:Label></td>
                    <td style="width: 388px">
                        <asp:TextBox ID="TextBox6" runat="server" ReadOnly="True" Text='<%# Bind("EveHours") %>'
                            Width="140px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 57px">
                        <asp:Label ID="CaptionIDateFrom" runat="server" Text="起始日期:"></asp:Label></td>
                    <td style="width: 105px">
                                         
<asp:TextBox ID="ZLTextBox1" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false,readOnly:true
})" 
                            Text='<%# Bind("DateFrom") %>' CssClass="Wdate" Width="140px"/></asp:TextBox>

</td>
                    <td style="width: 57px">
                        <asp:Label ID="CaptionIDateTo" runat="server" Text="终止日期:"></asp:Label>
                    </td>
                    <td>
                    
                                                             
<asp:TextBox ID="ZLTextBox2" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false,readOnly:true
})" 
                            Text='<%# Bind("DateTo") %>' CssClass="Wdate" Width="140px"/></asp:TextBox>

                      </td>
                </tr>
                 <tr>
                    <td style="height: 26px; width: 57px;">
                        <asp:Label ID="Label6" runat="server" Text="借款:"></asp:Label></td>
                    <td style="width: 121px; height: 26px;">
                        <asp:TextBox ID="CheckBox1" runat="server" Text='<%# Bind("BorrowCash") %>' Width="140px"   /></td>
                    <td style="width: 56px; height: 26px;">
                        <asp:Label ID="Label7" runat="server" Text="是否订票:"></asp:Label></td>
                    <td style="width: 388px; height: 26px;">
                        <asp:CheckBox ID="CheckBox2" runat="server" Checked='<%# Bind("BookTicket") %>' /></td>
                </tr>
                <tr>
                    <td style="height: 26px; width: 57px;">
                        <asp:Label ID="Label8" runat="server" Text="取消:"></asp:Label></td>
                    <td style="width: 121px; height: 26px;">
                        <asp:CheckBox ID="ckbCancel" runat="server" Checked='<%# Bind("Cancel") %>' 
                            Enabled="False" /></td>
                </tr>
                <tr>
                    <td style="width: 57px">
                        <asp:Label ID="CaptionICausation" runat="server" Text="原因:"></asp:Label></td>
                    <td colspan="3">
                        <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("Causation") %>' Width="440px" MaxLength="45"></asp:TextBox></td>
                </tr>
                 <tr>
                    <td style="width: 57px">
                        <asp:Label ID="Label9" runat="server" Text="备注:"></asp:Label></td>
                    <td colspan="3">
                        <asp:TextBox ID="txtMemo" runat="server" Text='<%# Bind("Memo") %>'
                            Width="440px" TextMode="MultiLine"></asp:TextBox></td>
                </tr>
            </table>
            </insertitemtemplate>
        <itemtemplate><table class="container_table" style="width: 715px">
                <tr>
                    <td style="height: 26px; width: 57px;">
                        <asp:Label ID="CaptionIEvectionId" runat="server" Text="编号:"></asp:Label></td>
                    <td style="width: 121px; height: 26px;">
                        <asp:TextBox ID="TextBox1" runat="server" ReadOnly="True" Text='<%# Bind("EvectionId") %>'
                            Width="120px"></asp:TextBox></td>
                    <td style="width: 56px; height: 26px;">
                        </td>
                    <td style="width: 388px; height: 26px;">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="height: 26px; width: 57px;">
                        <asp:Label ID="CaptionIEmployeeId" runat="server" Text="员工编号:"></asp:Label></td>
                    <td style="width: 121px; height: 26px;">
                        <InfoLight:WebRefVal ID="WebRefVal1" runat="server" AllowAddData="False" BackColor="#EFF3FB"
                            BindingText="" BindingValue='<%# Bind("EmployeeId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                            DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID" MultiLanguage="False"
                            PostBackButonClick="False" ReadOnly="True" ResxDataSet="" ResxFilePath="" UpdatePanelID=""
                            UseButtonImage="True" Width="120px">
                        </InfoLight:WebRefVal>
                    </td>
                    <td style="width: 56px; height: 26px;">
                        <asp:Label ID="Label2" runat="server" Text="所属部门:" Visible='<%#IsDepVisible(Eval("DepartmentName").ToString()) %>'></asp:Label></td>
                    <td style="width: 388px; height: 26px;">
                        <asp:TextBox ID="TextBox2" runat="server" ReadOnly="True" Visible='<%#IsDepVisible(Eval("DepartmentName").ToString()) %>' Text='<%# Bind("DepartmentName") %>'
                            Width="120px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="height: 26px; width: 57px;">
                        <asp:Label ID="CaptionICusCompany" runat="server" Text="客户公司:"></asp:Label></td>
                    <td style="width: 121px; height: 26px;">
                        <asp:TextBox ID="TextBox3" runat="server" ReadOnly="True" Text='<%# Bind("CusCompany") %>'
                            Width="120px"></asp:TextBox></td>
                    <td style="width: 56px; height: 26px;">
                        <asp:Label ID="CaptionICustomerName" runat="server" Text="客户姓名:"></asp:Label></td>
                    <td style="width: 388px; height: 26px;">
                        <asp:TextBox ID="TextBox4" runat="server" ReadOnly="True" Text='<%# Bind("CustomerName") %>'
                            Width="120px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 57px">
                        <asp:Label ID="CaptionIVehicleId" runat="server" Text="交通工具:"></asp:Label></td>
                    <td style="width: 121px">
                        <InfoLight:WebDropDownList ID="WebDropDownList1" runat="server" AutoInsertEmptyData="False"
                            DriverObject="" Enabled="False" Filter="" FilterObject="" SelectedValue='<%# Bind("VehicleId") %>'
                            Width="127px" DataSourceID="WVehicle" DataTextField="VehicleName" DataValueField="VehicleId">
                        </InfoLight:WebDropDownList></td>
                    <td style="width: 56px">
                        <asp:Label ID="CaptionIEveHours" runat="server" Text="出差时数:"></asp:Label></td>
                    <td style="width: 388px">
                        <asp:TextBox ID="TextBox6" runat="server" ReadOnly="True" Text='<%# Bind("EveHours") %>'
                            Width="120px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 57px">
                        <asp:Label ID="CaptionIDateFrom" runat="server" Text="起始日期:"></asp:Label></td>
                    <td style="width: 121px">
                        <cc1:ZLTextBox ID="ZLTextBox1" runat="server" Enabled="False" FloatLength="2" InputType="date"
                            IsDisplayTime="True" Language="Chinese" onblurCssName="" onfocusCssName="" ReadOnly="True"
                            ShowMessage="" Text='<%# Bind("DateFrom") %>' textValue="" Width="120px"></cc1:ZLTextBox></td>
                    <td style="width: 56px">
                        <asp:Label ID="CaptionIDateTo" runat="server" Text="终止日期:"></asp:Label>
                    </td>
                    <td>
                        <cc1:ZLTextBox ID="ZLTextBox2" runat="server" Enabled="False" FloatLength="2" InputType="date"
                            IsDisplayTime="True" Language="Chinese" onblurCssName="" onfocusCssName="" ReadOnly="True"
                            ShowMessage="" Text='<%# Bind("DateTo") %>' textValue="" Width="120px"></cc1:ZLTextBox></td>
                </tr>
                <tr>
                    <td style="height: 26px; width: 57px;">
                        <asp:Label ID="Label1" runat="server" Text="借款:"></asp:Label></td>
                    <td style="width: 121px; height: 26px;">
                        <asp:TextBox ID="ckbbrw" runat="server" Text='<%# Bind("BorrowCash") %>' ReadOnly="True" Width="120px"
                            /></td>
                    <td style="width: 56px; height: 26px;">
                        <asp:Label ID="Label3" runat="server" Text="是否订票:"></asp:Label></td>
                    <td style="width: 388px; height: 26px;">
                        <asp:CheckBox ID="ckbbook" runat="server" Checked='<%# Bind("BookTicket") %>' 
                            Enabled="False"/></td>
                </tr>
                <tr>
                    <td style="height: 26px; width: 57px;">
                        <asp:Label ID="Label4" runat="server" Text="取消:"></asp:Label></td>
                    <td style="width: 121px; height: 26px;">
                        <asp:CheckBox ID="ckbCancel" runat="server" Checked='<%# Bind("Cancel") %>' 
                            Enabled="False"/></td>
                </tr>
                <tr>
                    <td style="width: 57px">
                        <asp:Label ID="CaptionICausation" runat="server" Text="原因:"></asp:Label></td>
                    <td colspan="3">
                        <asp:TextBox ID="TextBox9" runat="server" ReadOnly="True" Text='<%# Bind("Causation") %>'
                            Width="440px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 57px">
                        <asp:Label ID="Label5" runat="server" Text="备注:"></asp:Label></td>
                    <td colspan="3">
                        <asp:TextBox ID="txtMemo" runat="server" ReadOnly="True" Text='<%# Bind("Memo") %>'
                            Width="440px" TextMode="MultiLine"></asp:TextBox></td>
                </tr>
            </table>

            </itemtemplate>
        <fields>
                <InfoLight:FormViewField ControlID="TextBox1" FieldName="EvectionId" />
                <InfoLight:FormViewField ControlID="WebRefVal1" FieldName="EmployeeId" />
                <InfoLight:FormViewField ControlID="ZLTextBox1" FieldName="DateFrom" />
                <InfoLight:FormViewField ControlID="ZLTextBox2" FieldName="DateTo" />
            </fields>
    </infolight:webformview>
    <br /><br />
    <div style="text-align: center" runat="server" id="dvLink">
        <span class="roundbtn" runat="server" id="spHistory">
            <asp:LinkButton ID="LinkButton1" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;保 存 修 改&nbsp;&nbsp;&nbsp;&nbsp;"
                OnClick="LinkButton1_Click" OnClientClick="return confirm('确认修改?')"></asp:LinkButton>
        </span>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">对于审核中、已审核的出差单，允许取消、修改备注。</span>
    </div>
</asp:Content>
